import api from '../utils/api.js'

export const getHttpTest = (data) => {
	return api.request({
		url: '/queryProductsByPrarm',
		method: 'post',
		data: data
	})
}
// 查看产品列表
export const getProductAll = (data) => {
	return api.request({
		url: '/queryAllProducts',
		method: 'get',
		header:{
			token:true
		},
		data
	})
}
// 查看产品详情
export const getPruductDetail = (data) => {
	return api.request({
		url: '/queryProductsByPrarm',
		method: 'post',
		data: data
	})
}
// 支付退款
export const refundOrder = (data) => {
	return api.request({
		url: '/jsapi/refundOrder',
		method: 'post',
		data: data
	})
}
